<?php
 defined('_JEXEC') or die('Restricted access');
 jimport( 'joomla.application.component.model' );
 
 class DssinhvienlopModelDslop extends JModel{
 	var $listLop = null;
 	function getDSlop($malop){
 			$db =& JFactory::getDBO();
			//$he=JRequest::getVar('he');
			$query = "SELECT * FROM #__sinhvien where F_TENLOP='".$malop."'";
			//$query = "SELECT * FROM #__lop where F_MAHE='DH'";
			$db->setQuery( $query, 0);
			$this->listLop = array();
			$this->listLop=$db->loadObjectList();
			return $this->listLop;
 	}
 }